package com.apps.globals.advent.model.po;

import com.apps.sannotation.constraints.NoRepeat;
import com.apps.sannotation.constraints.StrDef;
import com.apps.sannotation.identity.GmtCreate;
import com.apps.sannotation.identity.GmtModify;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 大鹏
 * @since 2020-10-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("kupa_advent")
public class KupaAdvent implements Serializable {


    private static final long serialVersionUID = -9071318938124766175L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NoRepeat
    private String prod_key;

    /**
     * 广告位名称
     */
    private String name;

    /**
     * 宽高比
     */
    private Float width_height_rate;

    /**
     * JSON格式的广告图字符串
     */
    private String key_value;

    private String client;

    @GmtCreate
    private LocalDateTime gmt_create;

    @GmtModify
    private LocalDateTime gmt_modify;

    @StrDef("")
    private String remark;


    public static final String ID = "id";

    public static final String KEY = "key";

    public static final String NAME = "name";

    public static final String HEIGHT = "height";

    public static final String WIDTH = "width";

    public static final String KEY_VALUE = "key_value";

    public static final String CLIENT = "client";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFY = "gmt_modify";

    public static final String REMARK = "remark";

}
